﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace wd_26_listview_v1
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            //禁用最大化按钮   https://blog.csdn.net/yb305/article/details/43232467
            InitializeComponent();
            initList();
        }

        private void initList()
        {
            //https://blog.csdn.net/manlibj/article/details/111035756
            for (int i = 0; i < 10; i++)
            {
                listview1.Items.Add(new { Id="abc", Name="def", Sex="ghi" });
            }
        }

    }

}
